{% extends 'base/layout.html' %}
{% load form_helpers %}
{% load i18n %}

{% block content %}
  <div class="row mt-5">
    <div class="col col-md-6 offset-md-3">
      <form action="" method="post" class="form">
        {% csrf_token %}
        {% for field in form.hidden_fields %}
          {{ field }}
        {% endfor %}
        <div class="card border-danger">
          <h5 class="card-header">{% block confirmation_title %}{% endblock %}</h5>
          <div class="card-body">
            {% block message %}<p>{% trans "Are you sure" %}?</p>{% endblock %}
          </div>
          <div class="card-footer text-end">
            <button type="submit" name="_confirm" class="btn btn-{{ button_class|default:"danger" }}">{% trans "Confirm" %}</button>
            <a href="{{ return_url }}" class="btn btn-outline-dark">{% trans "Cancel" %}</a>
          </div>
        </div>
      </form>
    </div>
  </div>
{% endblock %}
